# -*- coding: utf-8 -*-
"""
@Time ： 2023/9/18 19:46
@Auth ： y.h
@File ：execution_cpp_code.py
@IDE ：PyCharm
@Motto：The sooner you start to code, the longer the program will take. —— Roy Carlson
"""
import ctypes


# 需要操作对象时调用这个方法
def execution_cpp_code():
    ll = ctypes.windll.LoadLibrary(r"L:\pythonProjectTemplate\Controller\ExternalExecution\DDL\Dll1\x64\Release\Dll1.dll")
    temp = "goodjob"
    print(dir(ll))
    res = ll.sum(1,2)
    print(res)

    p = ctypes.c_wchar_p(temp)

    print(p.value)


if __name__ == '__main__':
    execution_cpp_code()
